package moviedatabase

abstract class Person {

    static constraints = {
		death		nullable: true
		name		blank: false
		surname		blank: false
		nationality	nullable: true, blank: true
    }
	
	static mapping = {
		tablePerHierarchy	false
	}
	
	static hasMany = [movies: Movie]
	
	String name, surname
	Date born, death
	String nationality
}
